﻿using System.Collections;
using System.Collections.Generic;
using System;
using System.Text;
using DAL;
using BLL;
using System.IO;
using System.Data;
using System.Xml;
using System.Web.Security;
using System.Security.Cryptography;
using System.Net;
using System.Web;

namespace Web.Old_App_Code
{
    /// <summary>
    ///TemplateLoad 的摘要说明
    /// </summary>
    public class TemplateLoad
    {
        // Fields
        protected string templateXmlPath = "/xml/template.xml";

        // Methods
        public string TemplateCssLoad()
        {
            string str = "";
            try
            {
                XmlDocument document = new XmlDocument();
                document.Load(HttpContext.Current.Server.MapPath(this.templateXmlPath));
                XmlNodeList childNodes = document.SelectSingleNode("templateCss").ChildNodes;
                foreach (XmlNode node in childNodes)
                {
                    XmlElement element = (XmlElement)node;
                    if (element.GetAttribute("isShow") == "true")
                    {
                        return element.GetAttribute("cssSrc");
                    }
                }
                return str;
            }
            catch
            {
            }
            return str;
        }

    }
}